#include <string.h>
#include <signal.h>
#include "client.h"

void sigint(int signum)
{
	exit_client();
}

int main(int argc,char* argv[])
{
	signal(SIGINT,sigint);
	
	if(2 == argc && !strcmp("find",argv[1]))
	{
		find_server();
		return 0;
	}
	
	init_client();
	
	start_client();
}
